package com.ruoyi.distributionLog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分销操作日志对象 wdmd_distribution_log
 * 
 * @author ruoyi
 * @date 2025-10-11
 */
public class DistributionLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long logId;

    /** 日志流水号(LOG开头) */
    @Excel(name = "日志流水号(LOG开头)")
    private String logCode;

    /** 分销员ID */
    @Excel(name = "分销员ID")
    private Long distributorId;

    /** 操作管理员ID */
    @Excel(name = "操作管理员ID")
    private Long adminId;

    /** 日志类型：1-绑定 2-升级 3-返佣 4-提现 5-冻结 */
    @Excel(name = "日志类型：1-绑定 2-升级 3-返佣 4-提现 5-冻结")
    private String logType;

    /** 操作动作说明 */
    @Excel(name = "操作动作说明")
    private String action;

    /** 变更对象 */
    @Excel(name = "变更对象")
    private String changeObject;

    /** 变更详情 */
    @Excel(name = "变更详情")
    private String changeDetail;

    /** 来源单号 */
    @Excel(name = "来源单号")
    private String sourceCode;

    /** 操作IP */
    @Excel(name = "操作IP")
    private String ipAddress;

    /** 用户代理 */
    @Excel(name = "用户代理")
    private String userAgent;

    /** 状态（0=上架 1=下架） */
    @Excel(name = "状态", readConverterExp = "0==上架,1==下架")
    private String status;

    /** 删除标志（0存在 2删除） */
    private String delFlag;

    /** 版本号（乐观锁） */
    @Excel(name = "版本号", readConverterExp = "乐=观锁")
    private Long version;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setLogCode(String logCode) 
    {
        this.logCode = logCode;
    }

    public String getLogCode() 
    {
        return logCode;
    }

    public void setDistributorId(Long distributorId) 
    {
        this.distributorId = distributorId;
    }

    public Long getDistributorId() 
    {
        return distributorId;
    }

    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }

    public void setLogType(String logType) 
    {
        this.logType = logType;
    }

    public String getLogType() 
    {
        return logType;
    }

    public void setAction(String action) 
    {
        this.action = action;
    }

    public String getAction() 
    {
        return action;
    }

    public void setChangeObject(String changeObject) 
    {
        this.changeObject = changeObject;
    }

    public String getChangeObject() 
    {
        return changeObject;
    }

    public void setChangeDetail(String changeDetail) 
    {
        this.changeDetail = changeDetail;
    }

    public String getChangeDetail() 
    {
        return changeDetail;
    }

    public void setSourceCode(String sourceCode) 
    {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode() 
    {
        return sourceCode;
    }

    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }

    public void setUserAgent(String userAgent) 
    {
        this.userAgent = userAgent;
    }

    public String getUserAgent() 
    {
        return userAgent;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("logCode", getLogCode())
            .append("distributorId", getDistributorId())
            .append("adminId", getAdminId())
            .append("logType", getLogType())
            .append("action", getAction())
            .append("changeObject", getChangeObject())
            .append("changeDetail", getChangeDetail())
            .append("sourceCode", getSourceCode())
            .append("ipAddress", getIpAddress())
            .append("userAgent", getUserAgent())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
